package com.beta.elephant.constant;

public class CommEnumMgr {

    /**
     * 奖品等级枚举
     */
    public enum RewardGradeNameEnum {
        minusOne(-1, "谢谢惠顾"),
        minusTwo(-2, "阳光普照"),

        one(1, "超级大奖"),
        two(2, "特等奖"),
        three(3, "一等奖"),
        four(4, "二等奖"),
        five(5, "三等奖"),
        six(6, "四等奖"),
        seven(7, "五等奖"),
        eight(8, "六等奖"),
        nine(9, "七等奖"),
        ten(10, "八等奖"),
        eleven(11, "九等奖"),
        twelve(12, "十等奖");

        private Integer code;
        private String desc;

        RewardGradeNameEnum(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public Integer getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }

        public static RewardGradeNameEnum getRewardStatus(Integer code) {
            RewardGradeNameEnum[] values = RewardGradeNameEnum.values();
            for (RewardGradeNameEnum value : values) {
                if (value.getCode().intValue() == code.intValue()) {
                    return value;
                }
            }
            return null;
        }
    }

    public enum Project {
        CFRS("财富人生"), KLJL("口令接龙"), DZP("大转盘"), HBY("红包雨"), ZJD("砸金蛋"), DT("标准答题");
        private String desc;

        private Project(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }

    public enum Scene {
        Account("记录账户变动流水"), Action("动作，如抽卡、砸蛋等"), Task("任务");
        private String desc;

        private Scene(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
            return desc;
        }
    }
}
